package com.frxuexi.lib_base.db

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.frxuexi.lib_base.entity.UserEntity
import com.frxuexi.lib_base.entity.VideoData

@Dao
interface VideoDao {

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun addVideo(videoData: VideoData):Long


    @Query("select * from video order by id desc limit 0,1")
    fun getLastVideo():VideoData

}